<h3>Sign In</h3>
<form xmlns:th="http://www.thymeleaf.org" action="authentication"
	th:action="@{/j_spring_security_check}" method="post" class="well">
	
	<div class="alert alert-error" th:if="${error !=null}" th:with="errorKey=${error}">
		<span th:text="${#messages.msg(errorKey)}" >Error</span>
	</div>
	
	<div class="alert alert-info" th:if="${info !=null}" th:with="infoKey=${info}">
		<span th:text="${#messages.msg(infoKey)}" >Error</span>
	</div>

	<fieldset>
		<table style="width: 100%">

			<tr>
				<td class="inputLabel"><label>Username </label></td>
				<td><input id="j_username" name="j_username" type="text"
					required="required" autofocus="autofocus" class="input span9"
					placeholder="Username" /></td>

			</tr>

			<tr>
				<td class="inputLabel"><label>Password </label></td>
				<td><input id="j_password" name="j_password" type="password"
					required="required" class="input span9" placeholder="Password" /></td>
			</tr>


		</table>
	</fieldset>





	<button type="submit" class="btn btn-success">Sign In</button>
	<!-- 
	<button type="submit" class="btn btn-info">Recover password</button>
	 -->
</form>